package news.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import news.biz.DetailBiz;
import news.entity.Detail;
import news.mapper.DetailMapper;

@Service
public class DetailBizimpl implements DetailBiz{
	
	@Autowired
	private DetailMapper detaildao;
	@Override
	public List<Detail> getAll() {
		return detaildao.getAll();
	}

	@Override
	public Detail fetchBy(int id) {
	return detaildao.fetchBy(id);
	}

}
